package com.flyco.modules.sms.vo;

import java.util.List;
import com.flyco.modules.sms.entity.SmsLotteryInfo;
import com.flyco.modules.sms.entity.SmsLotteryItem;
import com.flyco.modules.sms.entity.SmsLotteryHistory;
import lombok.Data;
import com.flyco.poi.excel.annotation.Excel;
import com.flyco.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 抽奖
 * @Author: flyco
 * @Date:   2020-04-16
 * @Version: V1.0
 */
@Data
public class SmsLotteryInfoPage {

	/**id*/
	private Long id;
	/**外部调用的地址，不唯一*/
  	@Excel(name = "外部调用的地址，不唯一", width = 15)
	private String url;
	/**是否删除*/
  	@Excel(name = "是否删除", width = 15)
	private Integer delFlag;
	/**名称*/
  	@Excel(name = "名称", width = 15)
	private String name;
	/**抽奖开始时间*/
  	@Excel(name = "抽奖开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date startTime;
	/**抽奖结束时间*/
  	@Excel(name = "抽奖结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date endTime;
	/**展示开始时间*/
  	@Excel(name = "展示开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date viewStartTime;
	/**展示结束时间*/
  	@Excel(name = "展示结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date viewEndTime;
	/**抽奖周期（0：抽奖期间，1：按天，7：按周，30：按月）*/
	@Excel(name = "抽奖周期（0：抽奖期间，1：按天，7：按周，30：按月）", width = 15)
	private Integer lotteryPeriod;
	/**每用户可抽总数量*/
  	@Excel(name = "每用户可抽总数量", width = 15)
	private Integer numOfMember;
	/**抽奖条件公式串*/
  	@Excel(name = "抽奖条件公式串", width = 15)
	private Object conditionText;
	/**创建人*/
  	@Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建时间*/
  	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
  	@Excel(name = "更新人", width = 15)
	private String updateBy;
	/**更新时间*/
  	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;

	@ExcelCollection(name="抽奖明细")
	private List<SmsLotteryItem> smsLotteryItemList;
	@ExcelCollection(name="抽奖记录")
	private List<SmsLotteryHistory> smsLotteryHistoryList;
	
}
